package com.atguigu.ssyx.activity.mapper;

import com.atguigu.ssyx.model.activity.SeckillSku;
import com.atguigu.ssyx.vo.activity.SeckillSkuVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SeckillSkuMapper extends BaseMapper<SeckillSku> {

    List<SeckillSkuVo>  findSeckillSkuListByDate(String date);

    Integer  minusStock(Long seckillSkuId, Integer skuNum);

    void  rollBackStock(Long seckillSkuId, Integer skuNum);

}
